#pragma once
#include"HiKernel/HiModule.h"

extern "C"
{
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
}

#pragma comment(lib, "lua.x86.debug.lib")

#include <iostream>
#include <string>
using namespace std;

//#include "LuaHelperFunctions.h"


class HI_DLLEXPORT mHiLuaScript : public HiModule
{
public:
	mHiLuaScript(HiXmlNode*xml=NULL);                                   
	virtual ~mHiLuaScript() {}          

	//virtual void PreConfig() {} ;
	virtual void PostConfig ();// {} ;
	//virtual void Sync() {} ;                        
	virtual void Update();     
	//virtual void Render() {};    


	virtual int ParseXml(HiXmlNode*xml) {return 1;};
	virtual int SetXmlAttrs(HiXmlNode*xml)                  { return 1; }
};
